import java.util.Arrays;

public class LeetCode344 {
    public static void main(String[] args) {
        char[] chars = {'1', '5', '4', '9', '6'};
        reverseString(chars);
        System.out.println(Arrays.toString(chars));

    }
    public static void reverseString(char[] s) {









        for (int i = 0,j = s.length - 1;i < s.length >> 1;i++,j--){
            char t = s[i];
            s[i] = s[j];
            s[j] = t;
        }
    }
}
